Dynomotion

Group: DynoMotion Message: 7722 From: tig415 Date: 6/20/2013
Subject: Mach3 and PWM spindle speed control
Hi
I'm planning on using a CNC4PC C41 - PWM Variable Speed Control Board to control my VFD. It is a step and direction unit with step as the speed and direction for CW and CCW.

After much searching it looks like "SpindleMach3JogsSteveRev2.c" is the best spindle program to use.

Am I on the right track or have I found another rabbit hole :)

Derek
Group: DynoMotion Message: 7723 From: Tom Kerekes Date: 6/20/2013
Subject: Re: Mach3 and PWM spindle speed control
Hi Derek,

If it was a Step and Direction device than I think that would be a good choice.

You didn't include any Link but I Googled and found this:

http://cnc4pc.com/Tech_Docs/C41R2_USER_MANUAL.pdf

From this it appears the C41 is not a Step and direction but rather a PWM and Direction.

PWM and Step Pulses are quite different.  Step pulses are usually fixed pulse time with a varying frequency (and typically never go beyond a low percentage duty cycle).  PWM is a fixed frequency with a varying pulse width (usually over the full 0-100% duty cycle).

There is a SpindleMach3PWM.c example that is probably more appropriate.

Regards
TK



Group: DynoMotion Message: 7724 From: tig415 Date: 6/20/2013
Subject: Re: Mach3 and PWM spindle speed control
Thanks tom
I'll give it a try.


--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Derek,
>
> If it was a Step and Direction device than I think that would be a good choice.
>
> You didn't include any Link but I Googled and found this:
>
> http://cnc4pc.com/Tech_Docs/C41R2_USER_MANUAL.pdf
>
> From this it appears the C41 is not a Step and direction but rather a PWM and Direction.
>
> PWM and Step Pulses are quite different.  Step pulses are usually fixed pulse time with a varying frequency (and typically never go beyond a low percentage duty cycle).  PWM is a fixed frequency with a varying pulse width (usually over the full 0-100% duty cycle).
>
> There is a SpindleMach3PWM.c example that is probably more appropriate.
>
> Regards
> TK
>
>
>
>
>
> ________________________________
> From: tig415 <tig416@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, June 20, 2013 4:23 PM
> Subject: [DynoMotion] Mach3 and PWM spindle speed control
>
>
>
>  
> Hi
> I'm planning on using a CNC4PC C41 - PWM Variable Speed Control Board to control my VFD. It is a step and direction unit with step as the speed and direction for CW and CCW.
>
> After much searching it looks like "SpindleMach3JogsSteveRev2.c" is the best spindle program to use.
>
> Am I on the right track or have I found another rabbit hole :)
>
> Derek
>
Group: DynoMotion Message: 7818 From: tig415 Date: 6/29/2013
Subject: Re: Mach3 and PWM spindle speed control
Hi Tom
Finally had some time to look at (and absorb) SpindleMach3PWM.c . I don't think that's going to work as it seems to specify a pin for for CW and a pin for CCW. The unit I have
uses the direction signal to change the relays. There are only 3 input terminals. PWM, DIR, ground.

The manual says:
 Inputs a PWM signal and outputs an analog 0-10VDC.
 Uses only two pins, one for PWM and one for direction. It is the presence of absence of
the valid PWM signal what would start/stop the spindle.
 Has two relays that can be used to control the direction and enable and disable the drive.

And

Go to Config / Ports&Pins / Motor Outputs. Enable the spindle and select the port and pins you wired for step and direction.

Go to Config / Ports&Pins / Spindle Setup. In the motor control box, check Use Spindle Motor Output and Step /Dir Motor. Under Pulley Ratios set the pulley ratios of the machine.


Thanks
Derek



--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Derek,
>
> If it was a Step and Direction device than I think that would be a good choice.
>
> You didn't include any Link but I Googled and found this:
>
> http://cnc4pc.com/Tech_Docs/C41R2_USER_MANUAL.pdf
>
> From this it appears the C41 is not a Step and direction but rather a PWM and Direction.
>
> PWM and Step Pulses are quite different.  Step pulses are usually fixed pulse time with a varying frequency (and typically never go beyond a low percentage duty cycle).  PWM is a fixed frequency with a varying pulse width (usually over the full 0-100% duty cycle).
>
> There is a SpindleMach3PWM.c example that is probably more appropriate.
>
> Regards
> TK
>
>
>
>
>
> ________________________________
> From: tig415 <tig416@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, June 20, 2013 4:23 PM
> Subject: [DynoMotion] Mach3 and PWM spindle speed control
>
>
>
>  
> Hi
> I'm planning on using a CNC4PC C41 - PWM Variable Speed Control Board to control my VFD. It is a step and direction unit with step as the speed and direction for CW and CCW.
>
> After much searching it looks like "SpindleMach3JogsSteveRev2.c" is the best spindle program to use.
>
> Am I on the right track or have I found another rabbit hole :)
>
> Derek
>
Group: DynoMotion Message: 7835 From: tig415 Date: 7/2/2013
Subject: Re: Mach3 and PWM spindle speed control
Bump

Hi Tom
Finally had some time to look at (and absorb) SpindleMach3PWM.c . I don't think
that's going to work as it seems to specify a pin for for CW and a pin for CCW.
The unit I have
uses the direction signal to change the relays. There are only 3 input
terminals. PWM, DIR, ground.

The manual says:
 Inputs a PWM signal and outputs an analog 0-10VDC.
 Uses only two pins, one for PWM and one for direction. It is the
presence of absence of
the valid PWM signal what would start/stop the spindle.
 Has two relays that can be used to control the direction and enable and
disable the drive.

And

Go to Config / Ports&Pins / Motor Outputs. Enable the spindle and select the
port and pins you wired for step and direction.

Go to Config / Ports&Pins / Spindle Setup. In the motor control box, check Use
Spindle Motor Output and Step /Dir Motor. Under Pulley Ratios set the pulley
ratios of the machine.


Thanks
Derek



> > Hi Derek,
> >
> > If it was a Step and Direction device than I think that would be a good choice.
> >
> > You didn't include any Link but I Googled and found this:
> >
> > http://cnc4pc.com/Tech_Docs/C41R2_USER_MANUAL.pdf
> >
> > From this it appears the C41 is not a Step and direction but rather a PWM and Direction.
> >
> > PWM and Step Pulses are quite different.  Step pulses are usually fixed pulse time with a varying frequency (and typically never go beyond a low percentage duty cycle).  PWM is a fixed frequency with a varying pulse width (usually over the full 0-100% duty cycle).
> >
> > There is a SpindleMach3PWM.c example that is probably more appropriate.
> >
> > Regards
> > TK
> >
> >
> >
> >
> >
> > ________________________________
> > From: tig415 <tig416@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, June 20, 2013 4:23 PM
> > Subject: [DynoMotion] Mach3 and PWM spindle speed control
> >
> >
> >
> >  
> > Hi
> > I'm planning on using a CNC4PC C41 - PWM Variable Speed Control Board to control my VFD. It is a step and direction unit with step as the speed and direction for CW and CCW.
> >
> > After much searching it looks like "SpindleMach3JogsSteveRev2.c" is the best spindle program to use.
> >
> > Am I on the right track or have I found another rabbit hole :)
> >
> > Derek
> >
>
Group: DynoMotion Message: 7839 From: Tom Kerekes Date: 7/2/2013
Subject: Re: Mach3 and PWM spindle speed control
Hi Derek,

Sorry I somehow missed this.

But it seems like SpindleMach3PWM.c should work.   You are correct it is written to activate two outputs one for CW and one for CCW.  But I believe you can just delete (or not use) one of them and treat the other as a Direction.

Ah but I just realized we should probably not turn off the "direction" when we are told to stop and rather set the PWM to zero.

I've attached a modified program with Bit 26 as the PWM and bit 27 as Direction

Regards
TK